forum

home / developersection / forums / stream not writing on a file

Stream not writing on a file

Jayden Bell 1702 28-Jan-2014

Is there anything wrong with this piece of code ? It's opening the file , yet it doesn't write on it.

fl = new FileStream(path, FileMode.OpenOrCreate);
sw = new StreamWriter(fl);
sw.WriteLine("Hello ");

c# c# 
Updated on 29-Jan-2014
Jayden Bell

Other


Message
Can you answer this question?

Answer

1 Answers

Liked By